package com.wx.serviceImpl;

import java.util.List;

import com.wx.daoImpl.OrderDaoImpl;
import com.wx.model.Order;
import com.wx.service.OrderServise;

public class OrderServiseIml implements OrderServise {

	@Override
	public List<Order> queryAllOrder(int pageNum , int pageSize) throws Exception {
		
		return new OrderDaoImpl().selectOrders( pageNum ,  pageSize);
	}

	@Override
	public int queryOrderCount() throws Exception {
		
		return new OrderDaoImpl().selectOrderCount();
	}

	@Override
	public boolean manageOrderById(int id) throws Exception {
		
		return new OrderDaoImpl().updateOrderById(id);
	}

}
